<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>浮动</title>
</head>
<style>
    .left,.right{
        width: 200px;
        height: 200px;
        background-color: red;
        float: left;
    }
</style>
<body>
<div class="left">
    左青龙
</div>
<div class="right">
    右白虎
</div>
</body>
</html>